package com.zxj.job.domain.exam;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zxj.common.core.domain.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 竞赛表结构
 * </p>
 *
 * @author zxj2022
 * @date 2024/12/29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_exam")
@Schema(name="Exam对象", description="竞赛表结构")
public class Exam extends BaseEntity implements Serializable {

    /** 串行版本 UID */
    @Serial
    private static final long serialVersionUID = 1L;

    /** 竞赛id（主键） */
    @Schema(description = "竞赛id（主键）")
    @TableId(value = "exam_id", type = IdType.ASSIGN_ID)
    private Long examId;

    /** 竞赛标题 */
    @Schema(description = "竞赛标题")
    private String title;

    /** 竞赛开始时间 */
    @Schema(description = "竞赛开始时间")
    private LocalDateTime startTime;

    /** 竞赛结束时间 */
    @Schema(description = "竞赛结束时间")
    private LocalDateTime endTime;

    /** 是否发布 0：未发布  1：已发布 */
    @Schema(description = "是否发布 0：未发布  1：已发布")
    private Integer status;
}
